<?php
/**
 * Created by PhpStorm.
 * User: openoter
 * Date: 2018/12/9
 * Time: 15:32
 */

namespace app\admin\validate;


use think\Validate;

class Cadre extends Validate {
    protected $rule = [
        ['password','require|confirm','请输入密码|两次密码不一致'],
        ['mobile','require|regex:/^1[345789]\d{9}$/','请输入手机号|请输入正确的手机号'],
    ];
}